package web;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import dao.TaskDao;
import entity.Task;

import service.New_TaskService;

public class New_TaskServlet extends HttpServlet {

	private static final long serialVersionUID = 1L;
	
	
	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {

		
		String tname=request.getParameter("tname");
		String tstart=request.getParameter("tstart");
		String tend=request.getParameter("tend");
		String text=request.getParameter("text");
		String state=request.getParameter("state");
		String level=request.getParameter("level");
		String user=request.getParameter("user");
		
		new New_TaskService().save(tname,tstart,tend,text,state,level, user, user, user, user, user);
		
		Task tk=new Task();
		
		tk.setEnd_time(tend);
		
	}

}
